package cate.common.table.activity.exorcism.sheet;


import cate.common.table.ESheet;
import cate.common.table.activity.exorcism.row.ExorcismGhostQualityRow;
import easy.java.dev.note.NoteClass;

@NoteClass("驱魔之夜-小鬼品质")
public class ExorcismGhostQualitySheet extends ESheet<ExorcismGhostQualityRow> {

    @Override
    public String getSheetName() {
        return "小鬼品质";
    }



    public ExorcismGhostQualityRow findRow(int quality, int configTid) {
        for (ExorcismGhostQualityRow row : this.getList()) {
            if (row.quality == quality && row.configTid == configTid) {
                return row;
            }
        }
        return null;
    }


    public int findPoint(int quality, int configTid) {
        for (ExorcismGhostQualityRow row : this.getList()) {
            if (row.quality == quality && row.configTid == configTid) {
                return row.point;
            }
        }
        return 0;
    }
}
